package teach.date;

import java.util.Date;

public class DateDemo {
    public static void main(String[] args) {
        Date date1 = new Date(1000);
        Date date2 = new Date();
        System.out.println(date1);
        System.out.println(date2);

        long l2 = date2.getTime();
        System.out.println(l2);
        date1.setTime(l2);
        System.out.println(date1);

    }
}
